<template>
  <ul class="wealth-topbar">
    <li :class="{active: status == 'left'}" @click="$emit('wealth-change', 1)">
      <p>乐钱包</p>
      <i></i>
    </li>
    <li
      class="wealth-topbar-right"
      :class="{active: status == 'right'}"
      @click="$emit('wealth-change', 2)"
    >
      <p>乐贝</p>
      <i></i>
    </li>
  </ul>
</template>

<script>
export default {
  props: {
    status: {
      type: String,
      required: true,
      default: "left"
    }
  },
  computed: {},
  methods: {}
};
</script>

<style scoped>
.wealth-topbar {
  text-align: center;
  font-size: 34px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #2086f9;
  height: 88px;
  line-height: 88px;
  z-index: 100;
}

.wealth-topbar li {
  display: inline-block;
  color: rgb(181, 216, 255);
  line-height: 34px;
  font-family: "PingFangSC-Regular";
}

.wealth-topbar-right {
  margin-left: 54px;
}

.wealth-topbar .active {
  /* border-bottom: 2px solid #fff; */
  color: #fff;
  font-family: "PingFangSC-Medium";
}
.wealth-topbar li.active p {
  color: #fff;
  font-family: "PingFangSC-Medium";
}
.wealth-topbar li.active i {
  display: block;
  margin: auto;
  margin-top: 10px;
  height: 6px;
  width: 42px;
  background-color: #fff;
  border-radius: 2px;
}
</style>
